package com.itheima.string;

public class TestString {
    public static void main(String[] args) {
        //1.String的不可变性
        String s = "hello";
        s += "world";
        System.out.println(s);
        //2.String共享性
        String s1 = "java";
        String s2 = "java";
        System.out.println(s1 == s2);
    }
}
